package cn.ekuma.data.dao;

import java.io.Serializable;

import cn.ekuma.data.dao.bean.IKeyed;

public class ParentNode<T> implements I_ParentNode<T>,Serializable {
     /**
	 * 
	 */
	private static final long serialVersionUID = -6335806113372218840L;
	IKeyed<T> key;
    Class parentClass;
    
    public ParentNode(I_ParentNode<T> warp) {
    	this(warp.getParentKey(),warp.getParentClass());
    }
    
     
	public ParentNode(IKeyed<T> key, Class parentClass) {
		super();
		this.key = key;
		this.parentClass = parentClass;
	}

	@Override
	public IKeyed<T> getParentKey() {
		return key;
	}

	@Override
	public Class getParentClass() {
		return parentClass;
	}

}
